package com.trkj.controllers;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.trkj.service.Hosp_emer_service;
import com.trkj.vo.Serach_condition;
/**
 * 急诊管理控制器
 * 1.急诊挂号
 * 2.
 * @author 小志
 *
 */
@Controller
public class Hosp_emer_controller {
	@Autowired
	Hosp_emer_service service;
	
	
	/**
	 * 1.急诊挂号
	 * @return
	 */
	@RequestMapping("to_hosp_emer_registration")
	public String to_hosp_emer_guahao(){
		return "hosp_emer_registration";
	}
	
	/**
	 * 多条件分页查询级诊挂号
	 * @param patient
	 * @return
	 */
	@RequestMapping("load_jizhen")
	@ResponseBody
	public Map<String,Object> load_jizhen(Serach_condition patient){
		System.out.println(patient);
		return service.load_jizhen(patient);
	}
}
